﻿using SqlSugar;
using System;
namespace Learun.Application.TwoDevelopment.ZZDT_EC

{
    /// <summary>
    /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
    /// Copyright (c) 2013-2018 Hexagon PPM
    /// 创 建：超级管理员
    /// 日 期：2022-03-14 10:56
    /// 描 述：对象类型元件库
    /// </summary>
    [SugarTable(TableName = "ec_objecttypelib")]
    public class ec_objecttypelibEntity 
    {
        #region 实体成员
        /// <summary>
        /// 对象类型元件库ID
        /// </summary>
        /// <returns></returns>
        [SugarColumn(IsPrimaryKey = true)]
        public string ObjectTypeLibID { get; set; }
        /// <summary>
        /// 对象类型ID。<see cref="ec_objecttypeEntity.ObjectTypeID"/>
        /// </summary>
        /// <returns></returns>
        public string ObjectTypeID { get; set; } = "";
        /// <summary>
        /// 元件库文件ID。<see cref="ec_library_fileEntity.LibraryFileID/>
        /// </summary>
        /// <returns></returns>
        public string LibraryFileID { get; set; } = "";
        #endregion

        #region 扩展操作
        /// <summary>
        /// 新增调用
        /// </summary>
        public void Create()
        {
            this.ObjectTypeLibID = Guid.NewGuid().ToString();
        }
        /// <summary>
        /// 编辑调用
        /// </summary>
        /// <param name="keyValue"></param>
        public void Modify(string keyValue)
        {
            this.ObjectTypeLibID = keyValue;
        }
        #endregion
    }
}

